<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>promise</title>
		
	</head>
	<body>
		<div id="show">
			
		</div>
		<script>
		 function disp(s){
			 document.getElementById("show").innerHTML=s+"="+typeof(s);
		 }
		 let pro=new Promise(function(myResolve,myReject){
			setTimeout(function(){
				myResolve("I love you ")
			},3000);
		 });
		 pro.then(function(v){
			 disp(v);
		 })
		</script>
	</body>
</html>
